package com.meilai.project.dto.workflow;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value= "审批流程上层表抽象类")
public class FlowBusinessDataSuperEntity extends BaseEntity {

    @ApiModelProperty(value = "流程标题")
    private String flow_title;

    @ApiModelProperty(value = "申请人id", example = "1")
    private Long flow_applyer_id;

    @ApiModelProperty(value = "申请人组织id", example = "1")
    private Long flow_applyer_org_id;

    @ApiModelProperty(value = "流程预设id", example = "1")
    private Long flow_default_id;

    @ApiModelProperty(value = "流程json（通过程序解析，可获知具体流程、以及流转情况）")
    private String flow_json;

    @ApiModelProperty(value = "当前状态（0：保存；2、退回；3、流程中；4、通过；5、删除；6、彻底删除）", example = "0")
    private Integer flow_status;

    @ApiModelProperty(value = "流程当前节点id")
    private String flow_current_node_id;

    @ApiModelProperty(value = "流程当前节点名称")
    private String flow_current_node_name;

    @ApiModelProperty(value = "流程通过时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime flow_passed_at;
//
//    @ApiModelProperty(value = "是否免审，0：否，1：免审")
//    private Integer is_no_review;
}
